<?php
/**
 * Created by JetBrains PhpStorm.
 * User: akrug
 * Date: 21.06.12
 * Time: 10:31
 * To change this template use File | Settings | File Templates.
 */
class Backend_Model_DbTable_Language extends UcsMvc_AbstractDbTable
{
    protected $_name = "language";

    public function getRowBy($languageCid){
        $select = $this->select()->where('language_cid = ?', $languageCid);
        $result = $this->fetchAll($select)->toArray();

        if(!empty($result)){
            return $result[0];
        }else{
            //TODO fallback einbauen
            return false;
        }
    }
}
